<?php if (count($cheltuieli)) : ?>

    <table class="table-list">
        <thead>
            <tr>
                <th>Furnizor</th>
                <th>Data cheltuielii</th>
                <th>Scadenţa</th>
                <th>Descriere</th>
            </tr>
        </thead>
        
        <tbody>
            <?php foreach ($cheltuieli as $cheltuiala) : ?>
            <tr>
                <td><?php echo $cheltuiala->getFurnizor() ?></td>
                <td><?php echo $cheltuiala->getData() ?></td>
                <td><?php echo $cheltuiala->getScadenta() ?></td>
                <td><?php echo $cheltuiala->getDescriere() ?></td>
            </tr>
            <?php endforeach; ?>
        </tbody>
    </table>
    
<?php else: ?>

    <div class="empty">
        Nu sunt cheltuieli înregistrate !
    </div>

<?php endif; ?>

